import { useLocale } from "@/hooks"

import GameListSelect from "../../common/gameListSelect"

const TimeFlag = ({ options, ...props }: { options?: { label: string; value: string }[]; props?: object }) => {
	const { newFormat } = useLocale()
	const optionsShow = options || [
		{
			label: newFormat("funds.proxy_member_funds_record.arrive_time"),
			value: "0"
		},
		{
			label: newFormat("funds.apply_time"),
			value: "1"
		}
	]

	return <GameListSelect name="timeFlag" placeholderId="common.please_choose" options={optionsShow} {...props} />
}

export default TimeFlag
